<?php $albums = Doctrine::getTable('Album')->fetchall(array('objectId'=>$objectId, 'objectType'=>$objectType, 'id'=>(isset($id) ? $id : 0)));?>

<?php foreach ($albums as $album):?>
  <div class="left" style="border:1px solid #ddd;padding:2px;margin:2px;width:120px;height:140px;overflow:hidden;position:relative;">
    <a title="<?php echo $album?>" href="<?php echo url_for('content/albumShow?id='.$album->getId())?>">
      <?php echo image_tag('/uploads/gallery/'.$album->getCoverImage(120), array('alt'=>$album, 'title'=>$album, 'style'=>'max-width:120px;max-height:110px;'))?><br>
      <span style="position:absolute;left:2px;bottom:0;color:#000;"><?php echo myTools::utf8_substr($album, 0, 100)?></span>
    </a>
  </div>
<?php endforeach?>

<br clear="all">